package com.ynny.extends_.bean08;

public class Dog extends Animal {

    @Override
    public void eat() {
        System.out.println("小狗吃🥁头");
    }


    //覆盖
    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
